/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aptech.model;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author Hoang Quy Hong An
 */
public class realEstateInfo extends org.apache.struts.action.ActionForm {
    private int realEstateID;
    private String realEstateTitle;
    private String description;
    private String realEstateImage;
    private String startDate;
    private String endDate;
    private int userID;
    private int postHistoryID;

    public int getPostHistoryID() {
        return postHistoryID;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getRealEstateID() {
        return realEstateID;
    }

    public void setRealEstateID(int realEstateID) {
        this.realEstateID = realEstateID;
    }

    public String getRealEstateImage() {
        return realEstateImage;
    }

    public void setRealEstateImage(String realEstateImage) {
        this.realEstateImage = realEstateImage;
    }

    public String getRealEstateTitle() {
        return realEstateTitle;
    }

    public void setRealEstateTitle(String realEstateTitle) {
        this.realEstateTitle = realEstateTitle;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }
    
    public realEstateInfo() {
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
//        if (getName() == null || getName().length() < 1) {
//            errors.add("name", new ActionMessage("error.name.required"));
//            // TODO: add 'error.name.required' key to your resources
//        }
        return errors;
    }
}
